Skip to content
This repository has been archived by the owner on Jul 14, 2021. It is now read-only.

First run at everkeys.add_key #5

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

zigdon
Copy link
Member

@zigdon zigdon commented Aug 13, 2013

No description provided.

@@ -0,0 +1,143 @@
from Queue import queue, Empty
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's Queue.Queue.

import evelink
import evelink.cache.sqlite

from kitnirc.modular import Module
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be grouped with other third party imports

def _add_key(request):
keyid = request['keyid']
vcode = request['vcode']
irc_account = request['metadata']['account'].lower()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This lower() is probably redundant, but I guess it's fine to have around.

Args:
keyid - API key id.
vcode - API key verification.
metadata['account'] - IRC account name.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't really clear at all. External functions shouldn't take dicts that have random keys set.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants